Yes, it's only closed when the object is garbage-collected; memmap.close method does nothing.
memmap.close
You can call x._mmap.close(), but keep in mind that any further access to the x object will crash python.
x._mmap.close()
x