rados_sync: use pthread features for thread-local

__thread isn't a portable way of setting thread local data. But the same
thing can be accomplished with pthread_get/setspecific.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>