On necessary and sufficient conditions of the BV quantization of a generic Lagrangian field system