agent: Fix --extra-socket on Windows.