common_set_lock_state
EXTERN int common_set_lock_state(struct function_block *, int, bool, int, uint8_t);
error = common_set_lock_state(&func_block, fd, debug, lock_type, SCMD_LOCK_LOCKED);
error = common_set_lock_state(&func_block, fd, debug, lock_type, SCMD_LOCK_UNLOCK);