All-Optical Reinforcement Learning in Solitonic X-Junctions