Implement cg_lock write biased rwlocks.
Merge branch 'master' of github.com:ckolivas/cgminer