Fix a bug in rwlock test initialization

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>