[PATCH 5.10 17/42] ring-buffer: Force before_stamp and write_stamp to be different on discard