_invalid would not be False on Python3.x

Some_LMDB_Resource_That_Was_Deleted_Or_Closed did not implement
__bool__, which is the __nonzero__ equivalent for 3.x. This caused
various tests to break.