A modular invariance property of multivariable trace functions for regular vertex operator algebras