Refactor node banning functions
Refactor node banning functions

Prep for inclusion of banning capability in the GUI

- Ensure the Sweep function is run during the periodic dump to disk
- Encapsulate locks better

benzmuircroft/REWIRE.io,PIVX-Project/PIVX,Mrs-X/PIVX,benzmuircroft/REWIRE.io,PIVX-Project/PIVX,Mrs-X/Darknet,npccoin/npccoin,Mrs-X/PIVX,benzmuircroft/REWIRE.io,benzmuircroft/REWIRE.io,Darknet-Crypto/Darknet,Darknet-Crypto/Darknet,PIVX-Project/PIVX,Darknet-Crypto/Darknet,PIVX-Project/PIVX,npccoin/npccoin,Mrs-X/PIVX,Darknet-Crypto/Darknet,Mrs-X/Darknet,Mrs-X/PIVX,benzmuircroft/REWIRE.io,npccoin/npccoin,PIVX-Project/PIVX,PIVX-Project/PIVX,Mrs-X/Darknet,npccoin/npccoin,Mrs-X/PIVX,Mrs-X/Darknet,PIVX-Project/PIVX,benzmuircroft/REWIRE.io,Mrs-X/Darknet,Darknet-Crypto/Darknet,Mrs-X/Darknet,PIVX-Project/PIVX,Darknet-Crypto/Darknet,Mrs-X/PIVX,npccoin/npccoin,PIVX-Project/PIVX,npccoin/npccoin