Make sure we don't compile same resource in parallel.