accelerate openblas startup for many-core machines

Address #4993 and possibly #2852 and #3536
This only works against the static compile branch, because we need to run this code before the codegen loads openblas.