TS-2564: Fix race condition when object is in the ram_cache and presence bits are already recalculated
TS-2778: Websockets remap doesn't properly handle the implicit port for wss.

(cherry picked from commit 6396c485bab8dbc4255f6790a5711de298b22787)