MB-7267: Need to convert flg value to host byte order

On 1.8.x sqlite files, we save flg as network byte order. When convert
to couchstore file format, we need to convert flg from network byte order
to local host byte order.

Change-Id: Ic302000a10d32dc16934126b27c0a9fd7d1d2da0
Reviewed-on: http://review.couchbase.org/22833
Tested-by: Bin Cui <bin.cui@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
Reviewed-on: http://review.couchbase.org/24041
Reviewed-by: Bin Cui <bin.cui@gmail.com>