[PATCH OLK-6.6 2/4] file: add take_fd() cleanup helper