Update dockerpty to fix discovered race condition.

Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
Merge pull request #272 from d11wtq/bugfix/race_condition

Update dockerpty to fix discovered race condition.