Make build_lock_object protected.

Revert to older garbage_collect, but using lock object.

Rename list_current_locks() to list_locks(), add to interface.