remove last call to RDUNLOCK, apache working but locking up for some reason