That's stupid, there's no way to avoid that. If you can't do it in software you can do it in hardware.
I do it when working at home with a digispark that simulates a mouse that moves a tiny bit once in a while.
You could even place the mouse on a moving surface or something.
I think in the office locking a PC is very important but in a WFH situation much less so. Especially in my case where I live alone.