Josephson-Majorana cycle in topological single-electron hybrid transistors