add get_local_changes_as_stream with callback

+ get_local_changes_as_stream with callback for storing reduced changes one by one
+ lock database for preventing get_local_changes_as_stream from retrieving changes when inserting trick move sequence into ajxp_changes