Small erlang utility that throttles the number of concurrent processes that can access a resource