Added timeout arg to condvar wait and circular buffer read

Signed-off-by: J. German Rivera <German.Rivera@freescale.com>