[PATCH 5.16 0074/1017] mm/mlock: fix two bugs in user_shm_lock()