added a separate mutex for botlib syscalls