Fixed setSynchronizationMode(int) sync mode check.

Instead of:
if ((sync != POSITION_SYNCHRONIZATION_NONE) || (sync != POSITION_SYNCHRONIZATION_CHECK)) 
it should be:
if ((sync != POSITION_SYNCHRONIZATION_NONE) && (sync != POSITION_SYNCHRONIZATION_CHECK))

If the check is done the first way, it will throw an exception on correct arguments.