linux-user: Move lock_user et al out of line