inpcb: Factor out function to obtain lport hash token.