Update broker command locking detection.
Update broker command locking detection.

Now flag a command as requiring locks if it imports the sync_domain
helper or uses the TemplateDomain class.

quattor/aquilon,quattor/aquilon,guillaume-philippon/aquilon,stdweird/aquilon,guillaume-philippon/aquilon,guillaume-philippon/aquilon,quattor/aquilon,stdweird/aquilon,stdweird/aquilon