Fix filter_policy object leak in NodeStore backends
Replace const Type& with Type const& for common types.

* std::string
* RippleAccount
* Account
* Currency
* uint256
* STAmount
* Json::Value
Make NetworkOPs::isFull() thread-safe