Generalize fsg_dev_attr_ro_set_writeable to use for other attributes.

Change-Id: I13a7611b2f032decaa74f2fcc04c2187447530e0