tests: TaskDistantTest uses dynamic temporary paths.

Tests in TaskDistantTest were using fixed name paths that prevent
concurrent runs of those tests. This could lead to permission issues if
several users were running the tests on the same node.

One helper method make_temp_filename() was added in TLib for that.