Fix crash when zypper is locked during pattern inspection

Fixes issue #415.
Use the new Ruby 1.9 hash syntax.