Precision tool with locking mechanism