learned synchronized multiple blocks and locks