Seems you are right. Manual p 333:"If the TGP line of sight is masked by the aircraft, “M” is displayed in this field to the right of the laser type. If masked, the laser will be unable to fire."
That will also explain why the M seems to appear and disappear without me touching anything in the aircraft.