K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-09-16T01:46:11.347182Z K 7 svn:log V 326 Allow multiple locks to be acquired by detecting corresponding bit flag, otherwise if a thread acquired a lock, another thread or the current thread itself can no longer acquire another lock because thread_mask_set() return whole flag word, this results bit leaking in the word and misbehavior in later locking and unlocking. END