Have you tried keeping the lock outside but connected so you can check what is happening when the programme finishes. That is whether or not the live or(more usually) the neutral is being switched off at the end?
If it isn’t then it’s gotta (I say with some doubt) be either the timer/board or wires/connections from it to the lock.
I don’t usually re-install a lock till I’ve functionally checked it in this way. Saves a little time sometimes although such problems are uncommon, IME.
Mike.
PS Since the thing was heard chattering that suggests it wasn’t switching off properly.