Programs in Capsicum(4) capability mode are unable to open /dev/tty
causing a capability violation in readpassphrase(). Mitigate this issue
by adding readpassphraseat().
The readpassphraseat() function call takes an extra argument, ttyfd.
A pre-opened /dev/tty file descriptor may be passed in ttyfd to avoid
capability violations.