Fixed sync problem with both readersfirst and writersfirst

Signed-off-by: Daniel Pierce <paladin2350@gmail.com>