Only lock reads on AIX if -w is true

Fixes #110