add thread_shutdown() to python

see https://github.com/jcupitt/libvips/issues/170