Impl isWriteMode() for claim modules.

All API modules that change the database should return true from isWriteMode().

Change-Id: If989c34bfd4ca3e50beb888507a774351e7c46b4