Maintenance Mechanics (R) hand was caught between the flange of a level indicator pipe for a knife gate and the housing of the Raw Mill Roll Press during maintenance activities to repair the knife gate. The equipment was locked out but the gate was not blocked/secured to prevent movement.