Any ship using sonar to map the floor would not be able to do so in secret. The only hope it would have would be to take advantage of just how vast the ocean is. However, sound carries a long long long way, and it would be very difficult to have a ship doing this in secret. Any opfor ship could just tail behind the ship and passively listen to the same signal and generate their maps in secret.