Quantum Fields in Curved Spacetime: Non Global Hyperbolicity and Locality