Exact bounds on the energy gap of transverse-field Ising chains by mapping to random walks