A toolkit for task lock or lock pool.