Actually it is a canine (Dog) behaviour. Actually your female lab is not trying to mate with female GSD. Your lab female lab is trying to dominate the female GSD. You can avoid this this by saying a simple word "NO" in a dominating way, when ever she do it. You have to show her that yoou are quite angry on what she is doing. Naturally labs don't show domination, but exceptions are there.