Clone template flock

Instead of using juju/utils/fslock to serialise lxc template creation, a new flock based implementation is used.

Fixes lp:1311668