Read write lock

As I told you earlier, I created a class for acquiring read or write locks. You can either use named locks and use the class to store them, or create a private lock and store it within your class.

I didn't test it yet, but it should work :)