How to restrict one direction rotation for a rachet mechanism