mktemp: unlink mkstemp alternative to (unsafe) dry-run option

Change-Id: I19eeca4e8a915418527630105405c4d74d542ead