workaround: Lwt_unix.files_of_directory does not close dir in some cases