Replace thread safe api for checking mount path.