Replaced the semi-public CV_PARALLEL_FRAMEWORK macro with a function.

That way, core/internal.hpp doesn't have to depend on cvconfig.h, which we don't ship.