Create RWLock with default attributes, when attributes is a null pointer

Now also create a RWLock with default attributes, when attributes is a null pointer.