Logical self reference, set theoretical paradoxes and the measurement problem in quantum mechanics