main: use a different tmp dir per each kms instance

BUG=3320

Change-Id: Id815fde83aecf45725173be578ad8e2b768900c2