[mr3105] Add locks to Map script shedule operations (by valgrind check).