Ultralong spin memory of optically excited single magnetic quantum dots