I see in the Qemu source code [0] that there's an option called `lock-key-sync`, but couldn't find it in the documentation [1].
It seems to be responsible for keeping the Caps Lock state synchronized between the local machine and the guest machine [2], and I can disable it by specifying `-vnc :1,lock-key-sync=off`.