Improve OSGi activator locks.