msvcr: Add _ungetch_nolock implementation.