msi: Add a length parameter to msi_set_property and use it where appropriate.