Added a number of tests for the locking mechanism which can now lock arbitrary config variables. PHPBB3-9596