rts: Add generic block traversal function, listAllBlocks
This function is exposed in the RtsAPI.h so that external users have a
blessed way to traverse all the different bdescr
s which are known by
the RTS.
The main motivation is to use this function in ghc-debug but avoid having to expose the internal structure of a Capability in the API.