w32: Replace gpgrt locks in w32-streams by native critical sections.
* src/w32-estream.c (TRACE_ERR): Also print the error number. This is in particular useful on non-english systems. (reader_context_s, writer_context_s): Replace the gpgrt mutex by a native critical section. Change all calls to gpgrt_lock_ fucntions by the EnterCriticalSection et al. (_gpgrt_w32_poll): Make CODE unsigned which is what WFMO returns. Remove the then useless condition.
The locking code here is self-contained and may badly interact with
the possible nPth "clamped" gpgrt lock functions.
- Signed-off-by: Werner Koch <wk@gnupg.org>