Improve the performance of TempoMap::frame_at_beat ().