Fix race condition when building with OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON

See for instance travis build failure for job 257.5.
Merge pull request #516 from tpaviot/review/fix-travis-pch-copy-headers

Fix race condition when building with USE_PCH and COPY_HEADERS_BUILD