bindings: Adding necessary GIL lock in generated callback destructor

The callback destructor is calling Py_DECREF on the python object, which
may ultimately lead to destruction of the python object.  Without GIL
locking, this can miserably fail with mysterious segfault.