add per_run_hook and global_lock to coverage.fns