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.