That may be too harsh of a consequence for the behavior in question.
As a teenager, he is going to be egocentric at this age. He will think that no one understands his worldview and that he's older and able to decide for himself.
If you approach this from a different angle that does not make him feel as thogh his view is invalidated or he's being controled, try to speak to him in a way that would want him to exibit responsible behaviors.
Let him know that you'd want to be able to trust him since he is getting older.
If you lock him out, that would be more of a punishment rather than a consequence. A punishment does not allow for the person to earn something back. A consequence may be you asking him to come home an hour early if he does not tell you where he is going to go the next time he's out.
Or, you may decide to take his cell phone for the day or other priviledges that he has.
That makes sense. Thanks for the suggestion. Good night!