Upgrade to DataNucleus 4

Second attempt at upgrading to DataNucleus 4. In contrast to the previous patch,
this patch fixes a compatibility issue in AuthorizationRecord when upgrading
from an earlier version of dCache using postgresql.

Target: trunk
Require-notes: no
Require-book: no
Acked-by: Albert Rossi <arossi@fnal.gov>
Patch: https://rb.dcache.org/r/7164/