Shared Memory version with blocks, using locks and Manual Static for