On the weak-gravity bound for a shift-symmetric scalar field