Client library: add debug trace messages to stat and mkdirs in order to facilitate debugging.