Fix intermittent delayed closure of the VM-level file handle in IO::Handle.close()