Fixed a bug in docker/docker.cpp that causes unresolved symbols on OSX.

Review: https://reviews.apache.org/r/24825
Fixed master to reject completed frameworks from re-registering.

Review: https://reviews.apache.org/r/20507