perf record: Set PERF_RECORD_PERIOD if attr->freq is set.