Add in sharing of the next_db var via shm

This is to support thin provisioning in whatever form it comes in.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>