Test failures on master job on OSX

There are occasional test failures on master job on RedDeer_master_matrix/152/jdk=sunjdk1.6,label=stable-mac/testReport/?

Try to find the cause and provide fix.