Photonic neuromorphic architecture for tens-of-task lifelong learning