Lutz–Kelker bias in pulsar parallax measurements