Add locking to ConfigStore and tests for delete()