Fix the order of lock/unlock/print/exec jobs on JobManager.