Expose session_id on the remote driver (but only if used directly). Fixes issue 5240.