APT : added some stuff, plus proper lock handle use in arm11u example.