dm cache metadata: improve policy checking

Pass policy structure around rather than just policy_name.
Introduce policy_unchanged() and have it check that the policy name,
major version and hint size are all unchanged.