New thread-safe buffers, windows and timeout with POSIX R/W Lock