The problem was that update_timing_fields_for_event() didn't release all MDL locks it took.
Attach a file by drag & drop or click to upload