An engagement at an African music festival took bandleader Jeremiah Lockwood as far from his musical roots as he’d ever ventured—and put him in tune with them anew