Blocked queue done. need to optimize locks