update subdoc-bench with new operations

Change-Id: I7d72d2d669f29dd7ec5238dc2aa8e82b57906f8c
Allow subdoc to be a standalone library

Provide in-source replacements for lcb-provided functionality.

Change-Id: Idd91e790710e22eec2e3d3e909c62bedb7d2b2d6