hotproc : fix tmpnam usage

Update to use mkstemp