Start implementing config files locking.
* bzrlib/tests/test_config.py:
(TestLockableConfig): Add a test for concurrent writers.
* bzrlib/config.py:
(LockableConfig): Some configs need to be locked (GlobalConfig and
LocationConfig at least).
(GlobalConfig.set_user_option): Needs a write lock to protect
against concurrent writes.