Prospects for probing axionlike particles at a future hadron collider through top quark production