Generate unique, temporary names for socket files in a more robust way.