make sure the path exists before we construct a std::string out of it
log the exception if we fail to read locked keys for a path