[JENKINS-19446] - Fix of possible deadlock during simultaneous jobs deletion and renaming

The fix enforces right locking order (from bigger objects to smaller) during deleteion and renaming requests.