devpts: if initialization failed, don't crash when opening /dev/ptmx