rgw: use rwlock for cache

Use a window for cache lru updates, so that we don't need to get the
writer lock every read.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
librados: use rwlock for lookup pool, cache results

Use rwlock to read cahed results, only use regular lock if
results are not cached.
Invalidate cache on new osdmap.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Merge pull request #1106 from ceph/wip-rgw-contention

Wip rgw contention

Reviewed-by: Sage Weil <sage@inktank.com>