Scattering of two spinning black holes in post-Minkowskian gravity, to all orders in spin, and effective-one-body mappings