I am not very familiar with MAD (passed the airport twice I think) but I would not be surprised if you enter the Schengen transit area first and then pass passport control to enter the non-Schengen area.
If so you can use the JK lounge anyway as you have *G status and travel the same day on a *A carrier. Should not be a problem...