softmmu-semi: fix lock_user* functions not to deref NULL upon OOM