I would leave it in, just so it's stock and there isn't a hole in the frame. If you're worried someone might use it and cause it to jam, you could always put some glue down the key hole. That will stop it.
That hole in the frame leads to a hole in the side of the steering neck where it locked the fork. If it's open, water and dirt can get into steering bearing area and cause corrosion.