fix #312. WAL should wait for server id to be set before recovering