documentation: Make sample code and documentation consistent

In the chapter 'analogy with reader-writer locking', the sample
code uses spinlock_t in reader-writer case. Just correct it so
that we can read the document easily.

Signed-off-by: Yao Dongdong <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
1 file changed