Add coverage for failed lock on build scheduler

[#81247410]