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.
Merge pull request #1035 from SpecLad:cv-concurrency