Added locking of comments for JComment mode in comments plugin