A few cleanups in xlog.cc

Avoid possible trouble with out-of-memory when duplicating xdir path.
Make a few more constants static.
Use a vclock API method to allocate and initialize a copy vclock object.