client-lib: Minor fixups and cleanup

  * the mechanism sanitize function was wrongly applied to certain mechs
  * remove unused duplicated mechanism declarations