Update dockerpty to fix discovered race condition.

This resolves the build errors https://travis-ci.org/orchardup/fig/jobs/28421853

It was previously possible to start a container that runs a very quick
command (like /bin/true) and thus exits fast. In this case, which trying
to start the pseudo-terminal and resize it, docker would complain that
the file descriptor does not exist.