Fixed issues for randomizations and kits

Updating a dispensed device to misallocated now works as expected (former known issue)

Site users: From now on, if you dispense a device type kit to a subject (Subject 1) and successfully register and activate the device for that subject, you can later on update the device's status from Dispensed to Misallocated, if needed. Previously, when you update a device's status, the device wasn't properly removed from the system and you couldn't dispense it to a new subject (Subject 2).

Retracted workaround: You no longer have to first deactivate the device, and then follow the workflow for misallocation. (Issue 31538783)