[stagefright] fix locking mechanism