Wrap the boost::python deleter with one that locks the GIL first.

For objects that might be deleted when the GIL is not already held
already, e.g. live data or a sub algorithm of another C++ algorithm, this
avoids a segfault on later versions of Python 2.7.
Refs #9513