client/libcephfs: Atomic lookup & ref inode

This is useful for clients that want to do something
(safely) with the inode object they've just retrieved.

Signed-off-by: John Spray <john.spray@inktank.com>