On the lifetime and one-year views of reserve risk, with application to IFRS 17 and Solvency II risk margins