Fixed code to not allow deletion of locked domains.

Added spec test to verify fixed code.

https://bugzilla.redhat.com/show_bug.cgi?id=1173712
https://bugzilla.redhat.com/show_bug.cgi?id=1176202