Handle zypper locks during pattern inspection graceful

Fixes issue #415.