a simple lock (without expires fucntion) , test combined with threading sample