How I do selections and locking (in this case for spaceships) is below:
So "ShipSelected" is a global Variable as is "ShipsUnlocked"
The green icons are for showing what ship is selected
When ShipsUnlocked is greater than or equal to 1, then this ship can be selected, setting the ShipSelected variable to 1 so that this can later be passed into the main game layout and used to pick the sprite/name/whatever.
When ShipsUnlocked is less than 1, a sprite is displayed over the ship (in this case a padlock icon) meaning it cannot be selected.
This is pretty far from the cleanest or tidyest way to do this, but it is very easy to follow.