Prepare swapping protection keys

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Implemented the switch of the meta document's protection key

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>