Tsmf crash related fixes (#1399, #1398)

This pull removes the /tmp/tsmf.tid file and uses shared memory with a unique ID.
Hard coded files used in the gstreamer channel are replaced with unique filenames per instance using mkstemp.

fixes #1399 
fixes #1398