Fixed coverity reported concurrency issues
CLOUDSTACK-7237 : Added TAR image processor for templates with tar extension