Fixes the following error message (the last line):
```
[FAILED] Failed to start TEST-60-MOUNT-RATELIMIT.service.
Sending SIGTERM to remaining processes...
Sending SIGKILL to remaining processes...
All filesystems, swaps, loop devices, MD devices and DM devices detached.
Exiting container.
Failed to read from pty input fd: Bad file descriptor
```
Follow-up for
b823809bca6cd531a54fcf0f02427aea7cd3e651 and
cf89e48028ed3b651f63ba624175394c3c0d8efa.
if (!f->master_hangup)
f->master_writable = f->master_readable = true;
- if (!f->stdin_hangup)
+ if (!f->stdin_hangup && f->input_fd >= 0)
f->stdin_readable = true;
if (!f->stdout_hangup)
f->stdout_writable = true;