Engineering spin-orbit synthetic Hamiltonians in liquid-crystal optical cavities