Mean-field approximation for chiral quark bag models