Add hasExternalLinkageUncached back with the test that Richard provided, but
keep the call at the current location.