Handle zypper locks during pattern inspection gracefully

Fixes issue #415.