Added coarse and fine grained mutex code files. The fine grained one is more efficient