releasetools: use set_metadata instead of set_perm

Change-Id: I1eda9dd7c1b1497fde1ae57596329193901947a2
Merge branch 'cm-11.0' into kk_mkt