libutils: refbase: jellybean mr1 compat

Also remerge: https://gerrit.omnirom.org/#/c/10054/

Change-Id: I9d810f37eb4e6a5929db4304bf3094c2374b5ac6