Replace INTERNAL_LOCK_* with deviced_event of the libsyscommon