OOM: fix potential killing of thread that is disabled