core:unlock_entity.sh is not finding a locked ...

unlock_entity.sh is not finding a locked template

Fixing a bug in the query that finds locked query.
Since templates does not have dynamic attributes only vm_static should
be looked for to find locked templates.

Change-Id: I42fb511c83ce0b7012581254c696a6c578737252
Signed-off-by: Eli Mesika <emesika@redhat.com>
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=890995