It depends on the reason why it stops working. Some lockout systems work by opening and closing a valve constraining the oil flow, if that is the case you might be able to fix it by simply dripping suitable quantity of fork oil back into the bath. You might be able to find a repair guide and e.g. amount of oil required if you have the precise fork make and model.