membuffer: fix data race when IsReadOnly
and Set may be concurrently invoked#1479
Open
you06 wants to merge 1 commit intotikv:master from you06:membuffer/race
+18
IsReadOnly
and Set may be concurrently invoked#1479