Improve thread/buffer shutdown using new vips_thread_shutdown method - closes #5