Get the count of locks held by a lock instance.

Implements a getter to that returns the count of locks held by a
specific lock instance.

Closes #30.