Update docs to include 'could_lock_resource' API.