Employee was operating a dump truck, the truck's automatic locking mechanism on the tail gate was stuck and wouldn't close. Employee attempted to free the mechanism with his hand and when the latch freed itself- it pinched his middle finger on his right hand.