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