Decays of B mesons to kaons without charm and the top-quark mass