Updated antivirus defends against malware, but it does not prevent a person from sitting down and using your unlocked, unattended computer. Locking the screen is the only option that stops someone from using your already-open session while you are gone. It addresses the actual risk in that moment: an unattended, logged-in device.