Use lockutils for writing /etc/lxc/lxc-usernet

Use logutils for writing /etc/lxc/lxc-usernet

Signed-off-by: Chuck Short <chuck.short@canonical.com>