slcanpty: detect that master PTY descriptor closed