Proton decay and neutrino masses in SO(10)