implement bsn_flow_checksum extension

Reviewer: @harshsin

See the Loxigen extension bsn_flow_checksum.