moved common file locking code into Bcfg2.Utils
Metadata: allowed setting global default authentication type