fix(MockSTDIN): reset `endEmitted` flag on reset()

Closes #5