fix small list to work with new async api

Recent updates to etherpad-lite core have broken synchronous access to the db/padManager.

This PR implements a solution which works with the new api.