Change the elmo-folder-synchronize use of MASK

Use the MASK argument, if supplied, to compare against the list of
messages in the msgdb to determine which messages need to be
synchronized.