[PATCH v3 4/6] kunit: Allow function redirection outside of the KUnit thread