增加互斥锁和条件变量的封装

Signed-off-by: hurley25 <liuhuan1992@gmail.com>