core: fix error message on create template from VM when the VM is locked

Change-Id: If56d50e9bb1274a55c5bc7b2d83b16f726561903
Bug-Url: https://bugzilla.redhat.com/1039979
Signed-off-by: Michal Skrivanek <michal.skrivanek@redhat.com>