fix potential unsynchronized access to killlock state at thread exit