Entropic force and real-time dynamics of holographic quarkonium in a magnetic field