[Bug 1162291] Inexplicable multithreading behaviour