Second quantization of noncommutative spaces