[PATCH OLK-6.6 417/452] file: add take_fd() cleanup helper