Witnessing spin-orbit thermal entanglement in rare-earth ions