Book keeping information done per sys

- A rather dirty hack used with pthread_rwlock since it's in the end
  shared memory, but it is allocated outside the changes done in
  new_common.c, so book keeping information added for it needed to be
  taken care of during the initialization and clean up.

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