Setup stub enter/leave functions
Implemented monitor_enter/leave