[PATCH 5.15 071/913] mm/mlock: fix two bugs in user_shm_lock()