Fix a bug that grnxx::Storage is not correctly locked in read-only mode.
Reduce MAX_FILE_SIZE_UPPER_LIMIT to avoid an overflow.
Remove repeated code.