Add a critical section for dynamic code generation. Bug 19864302 Change-Id: Iaca49fa72146ff35b6f1e5e40ade5cd2c5c48d0e Reviewed-on: https://swiftshader-review.googlesource.com/2657 Reviewed-by: Greg Hartman <ghartman@google.com> Tested-by: Greg Hartman <ghartman@google.com> Reviewed-by: Nicolas Capens <capn@google.com>