Set partition GUID code when specified

Fixes PRD-2315.

Depends on https://review.openstack.org/#/c/52730/