8145934: Make ttyLocker equivalent for Unified Logging frameworkReviewed-by: rprotacio, stuefe, jrose