In the _createLock function, it calls the _processLockChange function with nftStates[newTokenId].locked, which is an empty variable at L420. This means it only initializes with the isPermanentLocked parameter set to false.
When users try to lock their tokens permanently, they should first create the lock and then call lockPermanent. Additionally, to receive boosted FNX, they must set the end of the lock to be greater than veBoostCached.getMinLockedTimeForBoost() when creating the lock.
Add a mechanism that allows users to set permanent locking when they create the lock.
