added locking around transition to member of sharded cluster #924

fixes #924