Reduce lock contention during file read and write

- Added macro options for Partial lock and mutex for file accesses.

- Eliminated grabbing lock for committed blocks, because they are
immutable so that no writer will update it using dirty data.

Change-Id: I91fd8d323d0d144f78b24a73cf5a825649ac822e