Despite a lackluster 2024 for most bonds, investors with an eye on the long-term time horizon could reap future benefits.