Fix access bit mask.

Before a pv with HistoryRead access flag was not considered writable
although the Write bit was set.