core: RunVmCommand.canDoAction clean-up (4)

extract vmNotLocked()

Change-Id: Iec2b8e21253feb718b297f0dd12b963b53b2fb88
Signed-off-by: Gilad Chaplik <gchaplik@redhat.com>