fix deadlock if ts_cb is not set