Umm... why do you think so many uboats were lost in Gibraltar? In reality, the Brits had only 1-2 warships guarding the strait as they knew that the Germans would hold a big and noisy party everytime they reached the Gibraltar. Wasnt too hard for the warships to pinpoint the uboatīs position and sink it.