Emulate SUBSYSTEM=tty mocked device nodes as PTYs instead of plain files

With that they behave like a tty in terms of a bi-directional communication
channel, and they and respond to the relevant ioctls.

Add a test case that stty accepts the emulated node and its TCGETS ioctl works.

First part of https://github.com/martinpitt/umockdev/issues/9