Finite-volume holography and the cosmological constant