Almost seems that this check could be part of the `NPY_BEGIN_THREADS` macro.