Viewer: fix big race condition, wait condition was only waiting if the
viewer was using the RAM buffer, but it should wait always..