Working on lock backend API.
Added real dreadlock heap implementation, working on stable deadlock detection.
Handle stacking and upgrade/downgrade.