A note on the canonical quantization for acceleration-dependent Lagrangians