threads: assert THREAD_COMPLETED is immutable