Front lock of earthmoving machinery