patch MacOS NVCC boost::thread issue

Solves the problem described in #1009 .
Please rename `caffe::ThreadWrapper` to `caffe::Thread`.