Clone template flock

Fixes lp:1311668

Use flock to serialise lxc template creation rather than juju/utils/fslock