locate: don't try to locate when called from a "definition point"
Handles the first 2 points of #308