perf_events: Fix sample_period transfer on inherit