fdisk: fix a case where we can inadvertently close /proc/partitions fd early

2 files changed