Spin magnetic susceptibility in the two-layer Hubbard model