fix #9: detect fork and reinit coverage in setup and save coverage in teardown if needed

This will fix --boxed runs with coverage.