Spin- and localization-induced Aharonov-Bohm effect