Is it bad to keep hydraulic brakes engaged for many hours?
Short answer?  No, it will not generally cause you a problem.  This is actually a common method of parking a loaded touring bike.

Don't over tension the brake lever.  Remember that a hydraulic lever doesn't require excessive force to have power at the brake. 

A simple 6mm rubberband wrapped over the lever and handlebar should accomplish your purpose.