ent_bonename doesnt doesnt return a handle, just the STRING* name of the bone.
Bones have no handle as such, you access them by Entity & BoneName as Flits as shown. The string name of the bone is the closest you'll get to a handle.
Give us a better idea of what you need the "handle" for, and we'll try to
figure a way to get to want you want to do.