Changed mutex unlocking to use the itr found during locking; Added mutex for transfer_username