Sometime when baking during an animation blender could crash. WM_set_locked_interface(job->wm, true) was inside the wm thread. This caused a race condition between the check and the lock. Pull Request: https://projects.blender.org/blender/blender/pulls/120258