How to get tech.jvm.threads.totalCpuTime metric for 2 management zones in data explorer?

You will have to alter the expression to properly make use of the or() logic. The format (with line breaks added to enhance readability) is as follows

or(
in("<entity_type>",<entitySelector expression for MZ1>),
in("<entity_type>",<entitySelector expression for MZ2>)
)

I believe this is similar to your question about synthetic tests from two management zones, where a similar approach was suggested.