[PATCH 6.7 127/432] debugfs: fix wait/cancellation handling during remove