Try to write a thread-safe shader compilation step