Getting the file descriptor of a handle, without closing it