tests/vm: give wait_ssh() option to wait for root