Moved user lock to user.c. Added USER_CheckNotLock function.