Implementing srvShard lock for tee.