Demystifying the nonlocality problem in Aharonov–Bohm effect