mn: reworked UpdateLastPaid using chainActive.Tip() instead of pindex coming in from UpdatedBlockTip, also lock cs_main in order to prevent crashes
mn: reworked UpdateLastPaid using chainActive.Tip() instead of pindex coming in from UpdatedBlockTip, also lock cs_main in order to prevent crashes

machinecoin-project/machinecoin,machinecoin-project/machinecoin,machinecoin-project/machinecoin,machinecoin-project/machinecoin,machinecoin-project/machinecoin,machinecoin-project/machinecoin