Fix un-necessary use of mutex in lock-free rcu

also fix a bug in ref-count