Make dust threshold variable
Created by: aiorla
This PR fixes #2290 (closed). I am actually not sure if I have understood correctly what "avoiding calling internally the function while the wallet is under lock" meant there, I am just starting to get familiar with the codebase and Go. (hopefully to help more than hinder).