mllib: introduce Mkdtemp.temp_dir

Add a simple function to ease the usage of Mkdtemp.mkdtemp.
Use Mkdtemp.temp_dir instead of Mkdtemp.mkdtemp