getLock

abstract fun getLock(): Boolean
Whether it is locked, if it is set to true, the delegated resources cannot be undelegated within 3 days.
When the lock time is not over, if the owner delegates the same resources using the lock to the same address,
the lock time will be reset to 3 days
bool lock = 5;

Return

The lock.