Implement availability to display list of all locked packages
with lock command

Issue: freebsd/pkg#635
do not export list_locked and make it static
Merge pull request #801 from andrejzverev/master

Implement availability to display list of all locked packages with lock command