fix some race detector warnings
fix some race detector warnings

[#157961846](https://www.pivotaltracker.com/story/show/157961846)

Signed-off-by: John Shahid <d5f6a919b5b5e6a4f7f09f1adf45e90e5c38b58e@gmail.com>

cloudfoundry-incubator/executor