Fix Issue 7902 - Synchronized should not be allowed for individual
functions.