Use a different temporal directory for each instance

Otherwise there can be problems with permission on /tmp/kms directory
because the permissions set while creating it are only a mask that is
overrode by umask.

Change-Id: I495e08bea68e15d4112b859d90020f1a2607f3f8