common/hooks.c: handle null attr in pthread_rwlock_init

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Merge pull request #178 from rsalveti/handle_null_pthread_rwlock_init

common/hooks.c: handle null attr in pthread_rwlock_init