MB-7267: Need to convert flg value to host byte order
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 <ed18693fff32c00e22495f4877a3b901bed09041@gmail.com>
Reviewed-by: Steve Yen <ef850f73f7832052d3c6d9b5ddd3a1716d9a57f1@gmail.com>
Tested-by: Steve Yen <ef850f73f7832052d3c6d9b5ddd3a1716d9a57f1@gmail.com>

couchbaselabs/couchbase-cli,membase/membase-cli,couchbase/couchbase-cli,couchbaselabs/couchbase-cli,couchbaselabs/couchbase-cli,couchbase/couchbase-cli,membase/membase-cli,membase/membase-cli