If it's a common name then the security/border will surely take that into account. I assume your friend doesn't share the same birthdate as the Jan 6th rioter & certainly won't have the same passport number. I don't see why he'd get that much hassle, doesn't make sense esp. with a common name