s3-smbd: Added a change_to_user_by_session() function.