unix: Synchronized opening pseudo terminal master/slave 

Otherwise 'pts...name()' could return same slave name for different masters (created from different threads)