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

The fix enforces right locking order (from bigger objects to smaller) during deletion and renaming requests.
Issue URL: https://issues.jenkins-ci.org/browse/JENKINS-19446