Deprecated boost library in this two files.

Replace boost version of once_flag and function to std version.
Deprecate boost library in two files.

Replace boost version function and once_flag with std version.