Completed locking modifications for payout system
* Fetching pending payouts with RPC now locks them, preventing them from getting fetched twice by RPC
* A log message will be written to easily unlock payouts if an error occurs
* Queries won't select locked payouts
Added logging to the rpc calls. Added logging configuration docs to the config example