erasure-code: create default profile if necessary (firefly)

backport of https://github.com/ceph/ceph/pull/1990. It includes a cherry pick of a minor prototype change (https://github.com/dachary/ceph/commit/2fff5f031b2cc00b55bd1ada4f83e4838fe59ddd ) so that it compiles without a change.