Move the device lock into the backend function table