[PATCH 5.15 030/115] loop: Fix use-after-free issues