patch thread part4--almost finish mutex#lock part