They only got a lock on it when it opened it's bomb-bay doors to engage, and even that required it to be less than 8 nautical miles from the engaging battery. The battery operator was notably intelligent, using the lowest frequencies his radar could generate to maximize his chances of detection...