unload_ext behaves correctly

Set _loaded to False on unload so the module can be reloaded later.