Thread safety for Unix.