Add Lwt_unix.on_close hook for tracking file descriptors