If thread had a terminating signal, syscall leaving would try to lock process's mutex while not having interrupts enabled