Bug fix for reader-writer locks on *NIX platforms.