change name of instance of rwlock

on my compiler objected to it beign the same name as the type