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

@dclarizio @mkanoor Can you please review/test.