remove another invalid skip of locking in ungetwc