NZ mosques to be returned to community