Fix dummy lock missing pending_writers method

In order to make sure other methods are not missed
add a base abstract class that contains the methods
a reader/writer lock needs to implement and derive
from it for the two lock variations we currently have.

Change-Id: I482cd0c6852e56e94149410d3c71890c55f25ae1
Merge "Fix dummy lock missing pending_writers method"