releasetools: use set_metadata instead of set_perm

Change-Id: I1eda9dd7c1b1497fde1ae57596329193901947a2
Merge pull request #15 from CyanogenMod/cm-11.0

releasetools: use set_metadata instead of set_perm