A mosque in Perth's north has been fire-bombed overnight as the Islamic community marked a religious holiday.