Fixed typo inside of zypper lock helper

The typo lead to a bug which caused the wrong list of locks to be
returned.
Extended package lock test suite

Test the new features/improvements recently introduced.