portably handle prohibited headers across SPDY variants.

moves logic so that we can avoid ArrayList manipulation.

@JakeWharton