mhddfs clone: modified for c++ purpose and using boost for better locking abilities