[SPDK] spdk_thread_{exit,destroy} safety