Adds callback for enabling foreign key constraints

proposed in https://github.com/robotoworks/mechanoid/issues/76 

This way the default behavior is unchanged, but if one wanted to enable foreign key constraints they simply need to override `shouldEnableForeignKeyConstraints` in their open helper. It applies the proper version gating to do the right thing based on the device it's running on.