Not an expert but might try start up the car, turn it off and try locking it. If still fails to lock, try disconnect the battery for few minutes to reset and try lock your car. That's what I'll do temporary and get it checked tomorrow to find out the actual issue.
Maybe someone here has same issue before that can give you better answer.