Quantum entanglement of nontrivial spacetime topology