tests: resolve ASan error in ManagementTool tests

resolve unused lambda capture errors in newer versions of clang

Change-Id: If03c0a8387ddc35f9999dfbdd3ba474e4387b01b
diff --git a/tests/unit/mgmt/management-tool.cpp b/tests/unit/mgmt/management-tool.cpp
index 040bf38..e4ce0c5 100644
--- a/tests/unit/mgmt/management-tool.cpp
+++ b/tests/unit/mgmt/management-tool.cpp
@@ -61,9 +61,7 @@
       copyDir(current, destination / current.filename());
     }
     else {
-      // cannot use fs::copy_file, see https://svn.boost.org/trac/boost/ticket/10038
-      // fs::copy works, as it doesn't use problematic private API
-      copy(current, destination / current.filename());
+      copy_file(current, destination / current.filename());
     }
   }
 }