K 10 svn:author V 3 mjg K 8 svn:date V 27 2020-11-07T16:57:53.744530Z K 7 svn:log V 377 rms: several cleanups + debug read lockers handling This adds a dedicated counter updated with atomics when INVARIANTS is used. As a side effect one can reliably determine the lock is held for reading by at least one thread, but it's still not possible to find out whether curthread has the lock in said mode. This should be good enough in practice. Problem spotted by avg. END