Fixed locking problem with Solaris 11