Clearing unlocked pids from map if there is no one waiting to use them