ok I completely deleted the 5.1 sso db, uninstalled sso, vcenter inventory, web client....
then recreated a new sso db, installed new 5.1 sso pointing to new db, installed vcenter 5.1 pointing to the old db, installed inventory, installed web client
then I was able to get the master password changed.
other than that i guess there is no way to change master password.