CBlockLocator minor cleanup

Two minor separate changes. Forward declaration of `CBlockLocator` no longer needed in `db.h`. Const to give a hint to the compiler about `IsNull()`.