mktemp: switch to mkstemp

The compiler warning was breaking the build due to Werror, and it's
an easy fix

Change-Id: Ic109aa017c02596e9cf0aae3c6f82d72849b90cf
3 files changed