__fd_lock() first. Ouch. - Removed an unnecessary pair of __fd_lock()..__fd_unlock() calls from ttyname_r(). git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15156 87f5fb63-7c3d-0410-a384-fd976d0f7a62