Spanish mayor closes 'too popular' mosque