Bug fix: add task lock acquiring in cj_Init().