LSIF: Defunctionize closest dump
Created by: efritz
Remove the closest_dump function from the db layer and put it into lsif-server where the rest of the similar logic is. This allows us to share some additional code, and benchmarks shows that there is no meaningful performance regression.