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

Matt

Can you review.  I've run the UTs over the change, but otherwise there isn't much I can do to test that the fix works short of running stress, which probably isn't worth it for such a simple change.

Mike