Plug a file desc. leak in history_open(). This is ...

... not part of the original OpenBSD ksh, this is the new history
implementation from b610de7918714d654d85618690a9be2fbf0f4445