[PATCH 2/4] server: Simplified unlink flag logic