Masājid is a diptote only because it is a personal name.

Munṣarif and Ghayr Munṣarif — Definitions, Causes and Parsing