https://github.com/OpenRCT2/OpenRCT2/pull/16388 introduced locking for
linenoise state, which turned out to be too greedy and would cause a
lock to be taken while calling a blocking `read`. This would result in
any writes to stall until something was read on the input.
This addresses a data race for `linenoise::lnstate` and
`StdInOutConsole::_isPromptShowing` which could result in openrct2
crashing and misreporting values when inspected in debugger.