Aging and nonergodicity beyond the Khinchin theorem