use scoped_r/wlock instead of scoped_lock for rw_mutex fix #769
Merge pull request #770 from jubatus/feature/fix-769

use scoped_wlock and scoped_rlock for rw_mutex