The EF_CONNECTION bitmask is set on ent->s.eFlags for a player entity, which basically gets overwritten with ent->client->ps.eFlags in BG_PlayerStateToEntityState().
Attached patch sets the bitmask on the correct eFlags.
Interestingly enough, Unlagged has this fix as well :)
Created attachment 3030 [details] Fixes EF_CONNECTION being set on wrong eFlags