Clone template flock

Instead of using juju/utils/fslock to serialise lxc template creation, a new flock based implementation is used.

Fixes lp:1311668
This won't compile on Windows, there is no sysacll.Flock on windows