Basic Block Reference Counting

This patch adds basic block reference counting to all metadata drivers. Block counts are incremented and decremented accordingly. A future patch will hook this up to enforce the inability to delete blocks when they have references. 
Is z a throwaway variable? (Didn't see it used anywhere)
Is the find_one call necessary?