Add command to list current locks

Fixes #382