Fixes #111 - add locking around authorized_ids/default_id members
Merge pull request #117 from Metaswitch/issue111

[Reviewer Matt] Fixes #111 - add locking around authorized_ids/default_id members