After the player has purchased the product, you must remove the lock from the new levels so that the player can continue playing and save it to local storage.
The next time the player opens the game, you check local storage and remove the lock if necessary.
This means that you need to have a global variable in the code that is responsible for the status of this lock.