[PATCH openEuler-26.09 362/399] file: add take_fd() cleanup helper