Add shared buffers class to help control synchronization over shared buffers