Adds an after fork hook for workers.