Make all calls to a function queued and asynchronously guarded