Fix region size bug
Release kernel mutex before blocking wait for event
Working example showing output result