sadly we need to use the readdir_r (thread safe) interface.  it's annoying.. see os/FileStore.cc for an example.

and, crap: a quick grep indicates taht other readdir_r users are broken.  it appears that osd/ClassHandler.cc's use is the only safe one in the tree.  eek!