fix linker error when BT_THREADSAFE not defined