Add push/pop macros for the different queues. #1208
Add length tracking and assertions for lsm work queues. #1208 #1230