8216136: Take Compile_lock for SystemDictionary::_modification_counter with safepoint check
Summary: Transition compiler thread from native to VM state to check the Compile_lock with safepoint always.
Reviewed-by: dlong, eosterlund, dholmes
/build/
/dist/
/.idea/
nbproject/private/
/webrev
/.src-rev
/.jib/
.DS_Store
.metadata/
.recommenders/
test/nashorn/script/external
test/nashorn/lib
NashornProfile.txt
**/JTreport/**
**/JTwork/**