解決策
こちらのほうがわかりやすかったので変更しました。
react-nativeでiOSのビルドをするとmutex.hで'config.h' file not foundが出る
$ cd node_modules/react-native/third-party/glog-0.3.4
$ ../../scripts/ios-configure-glog.sh
参考
rm -rf node_modules/ && yarn cache clean && yarn install and rm -rf ~/.rncache
cd node_modules/react-native/scripts
./ios-install-third-party.sh
If your network is slow, you can download the packages separately and move them to therncache
folder