Manufacture of locks and hinges