fix rw lock build bug

Signed-off-by: yayanyang <yayanyang@gmail.com>