Update ModifiedBully.java

Added changes to access and leave critical section