Fixed race condition in multiprocessing hook.

Register finalize hook only if coverage was initialized by
after fork hook.
Added support for py.process.ForkedFunc