Ignore sigpipe to avoid resources leak.
Read lock is now no-op unles READ_LOCK option is turned on.