Make the solid behavior disabled my default. Then when any enemy collide with this specific wall (UID) you activate it's solid behavior. But in order to work you need to create a second wall (both really thin) to do the same thing as the first one do. The second wall is needed because when you collide and activate the solid behavior, the enemy will pass trought it because the colision already hapened. After that, if the enemy is not overlapping the wall anymore, disable the solid behavior again.
You need to play with this and test many times to work properly.