Add md_nominate and md_denominate functions

The former one is needed by blivet, the latter one is a counterpart useful at
least for testing.