Flesh out 'include_lineage'.

Expose it through the 'discover_resource_locks' API.

Document it.