They have been moved to the Action (COG) Menu:

The Lock/Unlock functionality still exists in Odoo 17 but has been relocated to improve the user interface organization.
Location in Odoo 14: The Lock and Unlock buttons were displayed as separate, visible buttons directly on the inventory transfer form view.
Location in Odoo 17: These functions have been moved to the Action menu (⚙️ icon) in the inventory transfer form. To access them: (After Validation)
Regards
------
NIZAMUDHEEN MJ