libfdisk: use reference counting for context

Signed-off-by: Karel Zak <kzak@redhat.com>