[PATCH 6.13 288/443] pidfs: improve ioctl handling