There is /lib/udev/cdrom_id but the following command doesn't lock the tray either
sudo /lib/udev/cdrom_id --lock-media --debug /dev/dvd
There is /lib/udev/cdrom_id but the following command doesn't lock the tray either
sudo /lib/udev/cdrom_id --lock-media --debug /dev/dvd