fixes #772 Check the correct condition on indexer destruction. Also
remove a DEV block that serialized indexers in debug builds and made
this bug much harder to find outside of optimized builds.
Merge branch 'bugfixes/tokumx-1.3'