cp_lookup_symbol_nonlocal: Move definition closer to its subroutines.