[PATCH 5.17 0063/1126] mm/mlock: fix two bugs in user_shm_lock()