Simplify CMutexLock
Simplify CMutexLock

o Remove unused Leave and GetLock functions
o Make Enter and TryEnter private.
o Simplify Enter and TryEnter.
  boost::unique_lock doesn't really know whether the
  mutex it wraps is locked or not when the defer_lock
  option is used.
  The boost::recursive_mutex does not expose this
  information, so unique_lock only infers this
  knowledge.  When taking the lock is defered, it
  (randomly) assumes that the lock is not taken.
  boost::unique_lock has the following definition:

        unique_lock(Mutex& m_,defer_lock_t):
            m(&m_),is_locked(false)
        {}

        bool owns_lock() const
        {
            return is_locked;
        }
  Thus it is a mistake to check owns_lock() in Enter
  and TryEnter - they will always return false.

syscoin/syscoin,domob1812/crowncoin,Infernoman/crowncoin,syscoin/syscoin,syscoin/syscoin,domob1812/crowncoin,Crowndev/crowncoin,Infernoman/crowncoin,syscoin/syscoin,Earlz/dobbscoin-source,Crowndev/crowncoin,Crowndev/crowncoin,dobbscoin/dobbscoin-source,domob1812/crowncoin,Earlz/dobbscoin-source,Crowndev/crowncoin,dobbscoin/dobbscoin-source,syscoin/syscoin,Infernoman/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,Crowndev/crowncoin,Earlz/dobbscoin-source,Infernoman/crowncoin,syscoin/syscoin,domob1812/crowncoin,syscoin/syscoin,syscoin/syscoin,domob1812/crowncoin,Earlz/dobbscoin-source,dobbscoin/dobbscoin-source,Earlz/dobbscoin-source,dobbscoin/dobbscoin-source,dobbscoin/dobbscoin-source,Infernoman/crowncoin,dobbscoin/dobbscoin-source,Earlz/dobbscoin-source