Fix concurrency issue on multiple materialize calls producing /tmp/hive.sql files (think oozie triggered massive job)