Solution: if options.use_fd do not create temporary random directory for ipc://*, since the socket is already created and passed to the library by the user.