releasetools: use set_metadata instead of set_perm

Change-Id: I1eda9dd7c1b1497fde1ae57596329193901947a2